package com.aaa.product.service.impl;

import com.aaa.entity.Product;
import com.aaa.product.dao.ProductDao;
import com.aaa.product.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: qy156-shop-parent
 * @description:
 * @author: 闫克起2
 * @create: 2022-11-17 16:23
 **/
@Service
public class ProductService implements IProductService {

    @Autowired
    private ProductDao productDao;
    @Override
    public Product findById(Long pid) {
        return productDao.selectById(pid);
    }
}
